<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:78:"D:\phpStudy\WWW\qybaowap\public/../application/index\view\user\addaddress.html";i:1513928539;}*/ ?>
<!DOCTYPE html>
<html lang="en" >
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <script src="__STATIC__/js/base.js"></script>
    <title>添加地址</title>
    <link rel="stylesheet" href="__STATIC__/css/base.css">
    <link rel="stylesheet" href="__STATIC__/css/modify.css">
    <link rel="stylesheet" href="__STATIC__/js/layer_mobile/need/layer.css">
    <script src="__STATIC__/js/jquery-1.11.1.min.js"></script>
    <script src="__STATIC__/js/form_validation.js"></script>
    <script src="__STATIC__/js/layer_mobile/layer.js"></script>
</head>
<body>
<section class="wrap">
    <div></div>
    <div id="login-form">
        <div id="form-title" style="margin-bottom: 0"></div>
            <form action="#"  class="bg-white"  id="form1">
            <div class="form-content " >
                <div class="clearfix input-inline"  >
                    <div class="formtitle pull-left">姓名</div>
                    <div class="formcontent pull-left">
                        <input tabindex="1"     id="phone_number"   class="inputstyle1" autocomplete="off"  maxlength="15" type="text" name="username" placeholder="请输入姓名"/>
                    </div>
                </div>
            </div>
            <div class="form-content "  >
                <div class="clearfix input-inline ">
                    <div class="formtitle pull-left">联系电话</div>
                    <div class="formcontent pull-left">
                        <input tabindex="1" id="code"  class="inputstyle1" style="width:9rem " autocomplete="off"  maxlength="15" type="text" name="username" placeholder="请输入联系电话"/>
                    </div>
                </div>
            </div>
            <div class="form-content "  >
                    <div class="clearfix input-inline " style="position: relative" id="selectArea">
                        <div class="formtitle pull-left"  >选择地区</div>
                        <div class="formcontent pull-left">
                        </div>
                        <a style="position: absolute;top: 0.1rem ; left:12rem" id="selected"><img src="__STATIC__/images/next.png" style="width:0.32rem "></a>
                    </div>
                </div>
                <script>
                    $(function(){
                        var areaId = getUrlParam('areaId');
                        if(areaId  != null){
                            $('#selected').text(areaId);
                        }
                        $('#selectArea').on('click',function(){
                           window.location.href='/selectarea.html';
                        });
                    });
                </script>
            <div class="form-content "  >
                    <div class="clearfix input-inline " >
                        <div class="formtitle pull-left">详细地址</div>
                        <div class="formcontent pull-left">
                            <input tabindex="1"    class="inputstyle1" style="width:9rem " autocomplete="off"  maxlength="15" type="text" name="username" placeholder="请输入详细地址"/>
                        </div>
                    </div>
            </div>
            <input type="button" class="login-button" value="提交" id="sublimit">
        </form>
    </div>
</section>
<script>
    $(function(){
        $('#sublimit').on('click',function(){
            var  res = searchSub();
            if(res =='ok'){
               //提交
           }else{
                //信息框
                //提示
                layer.open({
                    content:res
                    ,skin: 'msg'
                    ,time:3 //2秒后自动关闭
                });
            }
        });
    });
</script>
</body>
</html>